// import { request } from '@/utils/request'

import request from '@/utils/request'
/**
 * @description: 登录
 * @param {*} data {modile, password}
 * @return {*}
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
export function getUserProfile() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

export function getUserProfileById(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
